package com.dylan.channel.v10.constant;

/***
 * @Author dylan
 * @Description: 抽象常量类
 * @Create: 2024/9/18 10:29
 */
public abstract class AbstractConstant<T extends AbstractConstant<T>> implements Constant<T> {

    private final int id;
    private final String name;

    public AbstractConstant(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public int id() {
        return this.id;
    }

    @Override
    public String name() {
        return this.name;
    }

    @Override
    public int compareTo(T o) {
        return 0;
    }
}
